/*
 * @Description:
 * @Date: 2023-03-24 14:56:45
 * @LastEditors: czp
 * @LastEditTime: 2023-03-24 15:36:34
 */

//请求返回基础接口
export interface IBaseResp<T> {
	message: string;
	code: number;
	data: T;
}

//分页返回接口
export interface IPaginationResp<T> {
	list: T[];
	total?: number;
}
//分页请求接口
export interface IPaginationReq {
	page?: number;
	rows?: number;
}

// 上传文件签名请求
export interface IUploadSignReq {
	pathname: string;
	query: Record<string, any>;
}
// 上传文件签名响应
export interface IUploadSignResp {
	credentials: { tmpSecretId: string; tmpSecretKey: string; sessionToken: string };
	requestId: string;
	expiration: string;
	startTime: number;
	expiredTime: number;
}

//字典接口  label value
export interface IDictL extends Record<string, any> {
	label: string;
	value: string | number;
}
//字典接口 id name
export interface IDictI extends Record<string, any> {
	id: string | number;
	name: string;
}
